import fetch from 'common/src/utils/fetch'


/**
 *期中退课列表
 */
function page(data) {
    return fetch({
        url: '/api/electionservice/elcMedWithdraw/page',
        data:data,
        method: 'post',
    });
}

/**
 *期中退课
 */
function medWithdraw(id,calendarId) {
    return fetch({
        url: '/api/electionservice/elcMedWithdraw/medWithdraw',
        params:{id: id,calendarId: calendarId},
        method: 'post',
    });
}

/**
 *取消期中退课
 */
function cancelMedWithdraw(id,projectId) {
    return fetch({
        url: '/api/electionservice/elcMedWithdraw/cancelMedWithdraw',
        params:{id: id,projectId: projectId},
        method: 'post',
    });
}

export default {
    "page": page,
    "medWithdraw": medWithdraw,
    "cancelMedWithdraw":cancelMedWithdraw
}



